/*
 * @Author: IBOSS 2776641037@qq.com
 * @Date: 2024-11-07 11:28:12
 * @LastEditors: IBOSS 2776641037@qq.com
 * @LastEditTime: 2024-11-08 15:43:06
 * @Description:
 *
 * Copyright (c) 2024 by IBOSS, All Rights Reserved.
 */
import { requestClient } from '#/api/request';

export interface PageFetchParams {
  page: number;
  limit: number;

  [key: string]: any;
}

/**
 * 分页查询日志列表
 * @param params
 */
export async function getLogsPageApi(params?: PageFetchParams) {
  return requestClient.get<string[]>(`/logs`, { params });
}

/**
 * 获取日志详情
 * @param id
 */
export async function getLogsInfoApi(id: string) {
  return requestClient.get(`/logs/${id}`);
}

/**
 * 删除日志
 * @param id
 */
export async function deleteLogsApi(id: string) {
  return requestClient.delete(`/logs/${id}`);
}
